﻿<%@ Control Language="C#"%>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<ext:Window 
    ID="winChangePassword" 
    runat="server" 
    Title="Change Password" 
    Icon="Key"
    Modal="true"
    Height="150"
    Width="300"
    Layout="fit"
    Draggable="true"
    Resizable="false"
    Hidden="true"
    BodyBorder="false"
    Padding="5"
>
    <Items>
        <ext:Panel ID="Panel1" runat="server" FormID="frmChangePassword" Border="false" Layout="form"
                BodyBorder="false" BodyStyle="background:transparent;">
                <Items>
                    <ext:TextField ID="txtCurrentPassword" runat="server" InputType="Password" FieldLabel="CurrentPassword" AllowBlank="false"
                        BlankText="Old Password is required." AnchorHorizontal="100%" />
                    <ext:TextField ID="txtNewPassword" runat="server" InputType="Password" FieldLabel="NewPassword"
                        AllowBlank="false" BlankText="New password is required." AnchorHorizontal="100%" />
                    <ext:TextField ID="txtConfirmPassword" runat="server" InputType="Password" FieldLabel="ConfirmPassword" AllowBlank="false"
                        BlankText="Confirm password is required." AnchorHorizontal="100%" />
                </Items>
            </ext:Panel>
    </Items>
    <Buttons>
    <ext:Button ID="btnAccept" runat="server" Text="Accept" Icon="Accept">
        <DirectEvents>
            <Click Timeout="60000" Url="/Tourism/Member/ChangePassword" FormID="frmChangePassword" 
            Method="POST" Before="Ext.Msg.wait('Verifying...', 'ChangePassword');" Failure="Ext.Msg.show({
                    title:   'Change Password Error',
                    msg:     result.errorMessage,
                    buttons: Ext.Msg.OK,
                    icon:    Ext.MessageBox.ERROR
                });">
                <EventMask MinDelay="250" />
            </Click>
        </DirectEvents>
    </ext:Button>
    </Buttons>



</ext:Window>


